package com.xingxue.shopping.model.persist;

import java.util.Date;

public class orders {

	 private Integer ordersid;
	 private Date ordersdate;
	 private String  oedersprice;
	 private String orderscount;
	 private Integer state;
	public Integer getOrdersid() {
		return ordersid;
	}
	public void setOrdersid(Integer ordersid) {
		this.ordersid = ordersid;
	}
	public Date getOrdersdate() {
		return ordersdate;
	}
	public void setOrdersdate(Date ordersdate) {
		this.ordersdate = ordersdate;
	}
	public String getOedersprice() {
		return oedersprice;
	}
	public void setOedersprice(String oedersprice) {
		this.oedersprice = oedersprice;
	}
	public String getOrderscount() {
		return orderscount;
	}
	public void setOrderscount(String orderscount) {
		this.orderscount = orderscount;
	}
	public Integer getState() {
		return state;
	}
	public void setState(Integer state) {
		this.state = state;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((oedersprice == null) ? 0 : oedersprice.hashCode());
		result = prime * result + ((orderscount == null) ? 0 : orderscount.hashCode());
		result = prime * result + ((ordersdate == null) ? 0 : ordersdate.hashCode());
		result = prime * result + ((ordersid == null) ? 0 : ordersid.hashCode());
		result = prime * result + ((state == null) ? 0 : state.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		orders other = (orders) obj;
		if (oedersprice == null) {
			if (other.oedersprice != null)
				return false;
		} else if (!oedersprice.equals(other.oedersprice))
			return false;
		if (orderscount == null) {
			if (other.orderscount != null)
				return false;
		} else if (!orderscount.equals(other.orderscount))
			return false;
		if (ordersdate == null) {
			if (other.ordersdate != null)
				return false;
		} else if (!ordersdate.equals(other.ordersdate))
			return false;
		if (ordersid == null) {
			if (other.ordersid != null)
				return false;
		} else if (!ordersid.equals(other.ordersid))
			return false;
		if (state == null) {
			if (other.state != null)
				return false;
		} else if (!state.equals(other.state))
			return false;
		return true;
	}
	@Override
	public String toString() {
		return "orders [ordersid=" + ordersid + ", ordersdate=" + ordersdate + ", oedersprice=" + oedersprice
				+ ", orderscount=" + orderscount + ", state=" + state + "]";
	}
	 
	 
	
}
